<?php #20070418 http://www.framework.altervista.org/FrameWork/applications/00_main/application.inc
define('APPCONTAINER','1.00');
/************************************************************************/
/* FrameWork  test preview                                              */
/* ==================================================================== */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

// container application applicazione per ospitare piu applicazioni in una pagina

//aggiorna il path
if (!file_exists("datas/$path/$apptitle"))mkdir("datas/$path/$apptitle",0755);
//$path="$path/$appname";

?>

<?php structure_openBlock("table appl",apptitle($appname),""); ?>

<p>
<?php
$i=0;
$fd=opendir("$path/$appname");
while (false !== ($nf= readdir($fd))){
    if ($nf[0]!='.' && $nf[0]!='_' && $nf!="application.inc")
	$appsname[$i++]="$appname/$nf";
}
closedir($fd);

if ($i>0){
    sort($appsname);
    foreach($appsname as $appname){
  $apptitle=apptitle($appname);
	if (is_dir("$path/$appname"))
	    include "$path/$appname/application.inc";
	else
	    include "$path/$appname";
    }
}
?>
</p>
<?php structure_closeBlock(); ?>
